package com.wsz.pojo;

/**
 * 实体类转换Mysql数据库表结构
 * @version  2022-10-23 10:14
 */
public class User {
    private Integer id;
    private String username;
    private String password;
    private Boolean enabled;
    private Boolean locked;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Boolean getEnable() {
        return enabled;
    }

    public void setEnable(Boolean enable) {
        this.enabled = enable;
    }

    public Boolean getLocked() {
        return locked;
    }

    public void setLocked(Boolean locked) {
        this.locked = locked;
    }

    public User() {
    }

    public User(Integer id, String username, String password, Boolean enable, Boolean locked) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.enabled = enable;
        this.locked = locked;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", enable=" + enabled +
                ", locked=" + locked +
                '}';
    }
}
